package com.zjcode.cdcer.mapper;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.CerTreatmentInfo;
import com.zjcode.cdcer.model.CerTreatmentOfficalInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashMap;
import java.util.List;

@Mapper
public interface CerTreatmentOfficalInfoMapper {

    CerTreatmentOfficalInfo findById(@Param("id") String id);

    List<LinkedHashMap<String, Object>> findAllList(@Param("pageData") PageData pageData);

    void delOfficalById(@Param("id") String id);

    Integer copyTreatmentInfo(@Param("infos") List<CerTreatmentInfo> infos);

    List<LinkedHashMap<String, Object>> queryAllExportData(@Param("idsData") Object idsData,
                                                           @Param("ids") List<String> ids,
                                                           @Param("pageData") PageData pageData);

    int getOfficalCountByInitId(@Param("initId") String initId);

    int addBatchTreatmentOfficalInfo(@Param("list") List<CerTreatmentOfficalInfo> treatmentOfficalSuccessList);

}
